package com.sit.pojo;

import org.springframework.stereotype.Component;

import java.sql.Date;

@Component
public class hisborrow {
    private String readId;
    private String bookId;
    private Date borrowdate;
    private Date duedate;
    private Date returndate;

    public hisborrow(){}
    public hisborrow(String readId, String bookId, Date borrowdate, Date duedate, Date returndate) {
        this.readId = readId;
        this.bookId = bookId;
        this.borrowdate = borrowdate;
        this.duedate = duedate;
        this.returndate = returndate;
    }

    public String getReadId() {
        return readId;
    }
    public void setReadId(String readId) {
        this.readId = readId;
    }
    public String getBookId() {
        return bookId;
    }
    public void setBookId(String bookId) {
        this.bookId = bookId;
    }
    public Date getBorrowdate() {
        return borrowdate;
    }
    public void setBorrowdate(Date borrowdate) {
        this.borrowdate = borrowdate;
    }
    public Date getDuedate() {
        return duedate;
    }
    public void setDuedate(Date duedate) {
        this.duedate = duedate;
    }
    public Date getReturndate() {
        return returndate;
    }
    public void setReturndate(Date returndate) {
        this.returndate = returndate;
    }

    @Override
    public String toString() {
        return "hisborrow{" +
                "readId='" + readId + '\'' +
                ", bookId='" + bookId + '\'' +
                ", borrowdate=" + borrowdate +
                ", duedate=" + duedate +
                ", returndate=" + returndate +
                '}';
    }
}
